import {onMounted, ref} from "vue";

// https://dog.ceo/api/breed/pembroke/images/random

export default function () {
    // 数据
    let sum = ref(0);

    // 方法
    function add() {
        sum.value++;
    }

    onMounted(add)

    return {sum, add}
}
